package com.yuanzong.wuliu.model.business.customer;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import com.yuanzong.wuliu.model.base.BaseModel;

import java.io.Serializable;
import java.time.LocalDate;
import java.util.List;

@ApiModel(value = "BusinessCustomerDaijiaxian", description = "业务 - 客户 - 代驾险")
@TableName(value = "business_customer_daijiaxian")
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class BusinessCustomerDaijiaxian extends BaseModel implements Serializable {

    private static final long serialVersionUID = 21L;

    @ApiModelProperty(value = "ID")
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    @TableId(value = "id")
    private Long id;

    @ApiModelProperty(value = "客户ID")
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    @TableField(value = "customer_id")
    private Long customerId;

    @ApiModelProperty(value = "代驾险名称")
    @TableField(value = "name")
    private String name;

    @ApiModelProperty(value = "订单号")
    @TableField(value = "order_no")
    private String orderNo;

    @ApiModelProperty(value = "结束日期")
    @TableField(value = "end_date")
    private LocalDate endDate;

    @ApiModelProperty(value = "详情列表")
    @TableField(exist = false)
    private List<BusinessCustomerDaijiaxianDetails> detailses;

    @ApiModelProperty(value = "客户手机号")
    @TableField(exist = false)
    private String customerPhone;
}
